{% extends "base.html" %}
{% block content %}
	 <div id="login-form">
    {% if errors %}
    <p>Your username and password didn't match. Please try again.</p>
    {% endif %}
      <form action="/my/login" method="post">
      {%csrf_token%}
        <table>
          <tbody>
            <tr>
              <td align="right"><label for="username">登录名:</label></td>
              <td align="left"><input id="username" name="username" tabindex="1" type="text"></td>
            </tr>
            <tr>
              <td align="right"><label for="password">密码:</label></td>
              <td align="left"><input id="password" name="password" tabindex="2" type="password"></td>
            </tr>
            <!--<tr>
              <td></td>
              <td align="left"><label for="autologin"><input id="autologin" name="autologin" tabindex="4" type="checkbox" value="1"> 保持登录状态</label></td>
            </tr>
             -->
            <tr>
              <td align="left"><a href="/account/lost_password">忘记密码</a></td>
              <td align="right"><input type="submit" name="login" value="登录 »" tabindex="5"/></td>
            </tr>
          </tbody>
        </table>
				<script type="text/javascript">
				//<![CDATA[
				Form.Element.focus('username');
				//]]>
				</script>
      </form>
{% endblock %}